﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace An_Im.Theme.Custom
{

    public class AnButton : ButtonBase
    {
        public Brush AnButton_NormalBackground
        {
            get { return (Brush)GetValue(AnButton_NormalBackgroundProperty); }
            set { SetValue(AnButton_NormalBackgroundProperty, value); }
        }

        // Using a DependencyProperty as the backing store for NormalBackground.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty AnButton_NormalBackgroundProperty =
            DependencyProperty.Register("AnButton_NormalBackground", typeof(Brush), typeof(AnButton), new PropertyMetadata(new SolidColorBrush(Colors.White)));



        public Brush AnButton_OverBackground
        {
            get { return (Brush)GetValue(AnButton_OverBackgroundProperty); }
            set { SetValue(AnButton_OverBackgroundProperty, value); }
        }

        // Using a DependencyProperty as the backing store for OverBackground.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty AnButton_OverBackgroundProperty =
            DependencyProperty.Register("AnButton_OverBackground", typeof(Brush), typeof(AnButton), new PropertyMetadata(new SolidColorBrush(Colors.LightGray)));




        public Brush AnButton_PressedBackground
        {
            get { return (Brush)GetValue(AnButton_PressedBackgroundProperty); }
            set { SetValue(AnButton_PressedBackgroundProperty, value); }
        }

        // Using a DependencyProperty as the backing store for PressedBackground.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty AnButton_PressedBackgroundProperty =
            DependencyProperty.Register("AnButton_PressedBackground", typeof(Brush), typeof(AnButton), new PropertyMetadata(new SolidColorBrush(Colors.Gray)));

        public CornerRadius AnButton_CornerRadius
        {
            get { return (CornerRadius)GetValue(AnButton_CornerRadiusProperty); }
            set { SetValue(AnButton_CornerRadiusProperty, value); }
        }

        // Using a DependencyProperty as the backing store for CornerRadius.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty AnButton_CornerRadiusProperty =
            DependencyProperty.Register("AnButton_CornerRadius", typeof(CornerRadius), typeof(AnButton), new PropertyMetadata(new CornerRadius(3)));

        public ImageSource AnButton_IconSource
        {
            get { return (ImageSource)GetValue(AnButton_IconSourceProperty); }
            set { SetValue(AnButton_IconSourceProperty, value); }
        }

        // Using a DependencyProperty as the backing store for AnToggleButton_IconSource.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty AnButton_IconSourceProperty =
            DependencyProperty.Register("AnButton_IconSource", typeof(ImageSource), typeof(AnButton), new PropertyMetadata(null));

        public double AnButtonIconSource_Width
        {
            get { return (double)GetValue(AnButtonIconSource_WidthProperty); }
            set { SetValue (AnButtonIconSource_WidthProperty, value); }
        }

        public static readonly DependencyProperty AnButtonIconSource_WidthProperty =
            DependencyProperty.Register("AnButtonIconSource_Width", typeof(double), typeof(AnButton), new PropertyMetadata(null));
        static AnButton()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(AnButton), new FrameworkPropertyMetadata(typeof(AnButton)));
        }
    }
}
